package server;


import qdxml.*;

import java.io.StringReader;
import java.util.Hashtable;


//import org.xml.sax.DocumentHandler;

public class Test implements DocHandler {
	private static Test parser = new Test();

	public void startElement(String tag, Hashtable h) throws Exception {

	}

	public void endElement(String tag) throws Exception {

	}

	public void startDocument() throws Exception {

	}

	public void endDocument() throws Exception {

	}

	public void text(String str) throws Exception {

	}

	public static void main(String[] args) {
		String xmltest = "<message from='blue' text='holy crap!'><subel text='green!' /></message>";
		StringReader fr = new StringReader(xmltest);
		try {
		QDParser.parse(parser, fr);
		}
		catch (Exception e) {
			e.printStackTrace();
		}
		fr.close();
	}
}
